<?php

namespace app\api\model\merchant;

use think\Model;

class MerchantModel extends Model
{


    protected  $autoWriteTimestamp = 'datetime';

    protected $createTime = 'create_time';

    protected $updateTime = 'update_time';

    protected $table = 'pay_merchant';


    protected $json=['ip'];

    protected $jsonAssoc = true;


    public static function getMerchantInfo($appid,$appSecret)
    {
        return self::where(['appid'=>$appid,'secret'=>$appSecret])->find();

    }

}